package com.ls.controller.user.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @ClassName UpdateStatusModel
 * @Description 修改状态model
 * @Author pengyu
 * @Date 2020/5/25 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateStatusModel {
    @NotNull(message = "用户id不得为空")
    private Long userId;

    /**
     * 有效状态，0为无效（已注销），1为有效，默认1
     */
    @NotNull(message = "状态不得为空")
    @Min(value = 0, message = "有效状态不得小于0")
    @Max(value = 1, message = "有效状态不得大于1")
    private Integer validFlag;
}
